import { ConfigProvider, Tooltip, TooltipProps } from 'antd';

const index = (props: TooltipProps) => {
  return (
    <ConfigProvider
      theme={{
        components: {
          Tooltip: {
            colorBgSpotlight: 'white',
            colorTextLightSolid: '#000',
          },
        },
      }}
    >
      <Tooltip {...props}>{props.children}</Tooltip>
    </ConfigProvider>
  );
};

export default index;
